Cannot generate new credentials (snapcraft 7.2.2->4)
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
OS: Ubuntu 20.04
Snapcraft: 7.2.4 (tested with 7.2.2, 7.2.3)
Following: https://snapcraft.io/docs/snapcraft-authentication
```
jenkins@jenkins:~$ snapcraft export-login creds
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
Email: foo@bar
Password:
Exported login credentials to 'creds'
These credentials must be used on Snapcraft 7.2 or greater.
jenkins@jenkins:~$ export SNAPCRAFT_STORE_CREDENTIALS=$(cat creds)
jenkins@jenkins:~$ snapcraft login
Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set.
Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again.
Full execution log: '/var/lib/jenkins/.cache/snapcraft/log/snapcraft-20221102-091756.378016.log'
```
Log:
```
jenkins@jenkins:~$ cat /var/lib/jenkins/.cache/snapcraft/log/snapcraft-20221102-091756.378016.log
2022-11-02 09:17:56.378 Starting Snapcraft 7.2.4
2022-11-02 09:17:56.380 Storing credentials for 'snapcraft' on 'dashboard.snapcraft.io' in keyring 'auth MemoryKeyring'.
2022-11-02 09:17:56.380 Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set.
2022-11-02 09:17:56.380 Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again.
2022-11-02 09:17:56.380 Full execution log: '/var/lib/jenkins/.cache/snapcraft/log/snapcraft-20221102-091756.378016.log'
```
Note: unsetting SNAPCRAFT_STORE_CREDENTIALS doesn't change anything. It's a build machine without gnome-keyring
Evaluation history
No evaluation history available.